'use strict';

describe('Filter: marker', function() {

  // load the filter's module
  beforeEach(module('webappApp'));

  // initialize a new instance of the filter before each test
  var marker;
  beforeEach(inject(function($filter) {
    marker = $filter('marker');
  }));

  it('should create a marker from a whose location matches the input', function() {
    var location = {
      latitude: 5,
      longitude: 5
    };
    expect(marker(location).position.lat()).toBe(location.latitude);
    expect(marker(location).position.lng()).toBe(location.longitude);
  });
});